home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Form;
- import javax.microedition.lcdui.Image;
- import javax.microedition.lcdui.ImageItem;
-
- // $FF: renamed from: f
- public class class_0 extends Form implements CommandListener {
- // $FF: renamed from: new MicroCalc
- MicroCalc field_0;
- // $FF: renamed from: int javax.microedition.lcdui.Image
- private Image field_1;
- // $FF: renamed from: do a
- private a field_2;
- // $FF: renamed from: if long
- private long field_3;
- // $FF: renamed from: byte boolean
- boolean field_4 = false;
- // $FF: renamed from: for javax.microedition.lcdui.Command
- Command field_5 = new Command(Resources.getText(5), 7, 4);
- // $FF: renamed from: case javax.microedition.lcdui.Command
- Command field_6 = new Command(Resources.getText(6), 1, 1);
- // $FF: renamed from: a long
- long field_7;
- // $FF: renamed from: try f.a
- f$a field_8;
-
- public class_0(MicroCalc var1) {
- super(Resources.getText(0));
- this.field_0 = var1;
- this.field_1 = this.method_1("img/MicroCalc.png");
- this.field_2 = new a(this.field_0, this);
- ((Form)this).append(new ImageItem("SL45i/6688i", this.field_1, 3, (String)null));
- ((Displayable)this).addCommand(this.field_6);
- ((Displayable)this).addCommand(this.field_5);
- ((Displayable)this).setCommandListener(this);
- this.field_7 = System.currentTimeMillis();
- this.field_8 = new f$a(this);
- this.field_8.a = false;
- this.field_8.start();
- }
-
- // $FF: renamed from: a (f) a
- static a method_0(class_0 var0) {
- return var0.field_2;
- }
-
- public void commandAction(Command var1, Displayable var2) {
- if (var1 == this.field_5) {
- this.field_0.destroyApp(false);
- } else if (var1 == this.field_6) {
- this.field_4 = true;
- this.field_0.if.setCurrent(this.field_2);
- }
-
- }
-
- // $FF: renamed from: a (java.lang.String) javax.microedition.lcdui.Image
- private Image method_1(String var1) {
- try {
- return Image.createImage("/" + var1);
- } catch (Exception var2) {
- return null;
- }
- }
- }
-